*Outputs*

clear
use "Results\fig_3\results.dta"

*Save results in Excel file*

export excel using "Results\fig_3\benchmark_results.xlsx", firstrow(variables) replace

*Figure 4*

replace gini_cf_sort=gini if aar==1980


replace gini_cf_sort_educ=gini if aar==1980


replace gini_cf_sort_field=gini if aar==1980



*Fixed sorting - singles and couples
twoway line gini aar, lcolor(navy) || line gini_cf_sort_educ aar, lpattern(dash) lcolor(maroon) || line gini_cf_sort aar, lpattern(dash_dot) lcolor(forest_green)|| line gini_cf_sort_field aar, lpattern(longdash) lcolor(dkorange) ///
ytitle(Gini coefficient) xtitle(year) legend(order(1 "Data" 2 "Educational Level" 4 "Educational Field" 3 "Educational Ambition") position(6) cols(2) rows(2)) graphregion(fcolor(white))

